package org.example.wikwok.service;

import org.example.wikwok.pojo.User;
import org.example.wikwok.pojo.UserInfo;

public interface UserService {
    User Login(String name, String password) throws Exception;

    boolean Register( String name, String password) throws Exception;



    boolean UpdateUserPassword(int id, String OldPassword, String NewPassword) throws Exception;


    void Logout(int id);

    UserInfo getUserInfo(int userId);

    boolean UpdateUserInfo(int userId, String userName, String imgUrl, String descrip);
}
